tickets = [["MUC","LHR"],["JFK","MUC"],["SFO","SJC"],["LHR","SFO"]]
def findItinerary(tickets):
    dictionary=dict()
    for item in tickets:
        key,val=item[0],item[1]
        dictionary[key]=val
    print(dictionary)
findItinerary(tickets)
